﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BuzzwordBingo.Interface;

namespace BuzzwordBingo.Entities
{
    /// <summary>
    /// Buzzword category, implements IBuzzwordCategory, PersistenceBase
    /// </summary>
    public class BuzzwordCategory : PersistenceBase, IBuzzwordCategory
    {
        #region constructor

        /// <summary>
        /// Initialize with a name
        /// </summary>
        /// <param name="CategoryName">category name</param>
        public BuzzwordCategory(string CategoryName)
        {
            Category = CategoryName;
            BuzzWordList = new List<IBuzzWord>();
        }

        /// <summary>
        /// Initialize with Id and name
        /// </summary>
        /// <param name="Id">int</param>
        /// <param name="CategoryName">category name</param>
        public BuzzwordCategory(int Id, string CategoryName)
        {
            this.Id = Id;
            Category = CategoryName;
            BuzzWordList = new List<IBuzzWord>();
        }

        #endregion

        #region IBuzzwordCategory Members

        public string Category { get; set; }
        public int GetId { get { return this.Id; }}
        public IList<IBuzzWord> BuzzWordList { get; set; }

        #endregion
    }
}
